Skip to content

# [fix](topn lazy materialization) Disable topn lazy materialization on non-light-schema-change tables#65415

Open
liutang123 wants to merge 2 commits into
apache:masterfrom
liutang123:fix-topn-lazy-non-lsc-table
Open

# [fix](topn lazy materialization) Disable topn lazy materialization on non-light-schema-change tables#65415
liutang123 wants to merge 2 commits into
apache:masterfrom
liutang123:fix-topn-lazy-non-lsc-table

Conversation

@liutang123

@liutang123 liutang123 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

A top-N query that emits a non-order-by column fails on a non-light-schema-change OLAP table (a table created/upgraded with light_schema_change = false, where every column's uniqueId is -1):

select id, name from tbl order by createdate desc limit 10;
ERROR 1105 (HY000): errCode = 2, detailMessage =
[INTERNAL_ERROR]field name is invalid. field=__DORIS_GLOBAL_ROWID_COL__tbl,
field_name_to_index=[...], col_unique_id=2147483647

Fix: disable topn lazy materialization for non-light-schema-change OLAP tables in MaterializeProbeVisitor and fall back to normal topn (the working two-phase read path). A new helper supportOlapTopnLazyMaterialize() consolidates the existing AGG_KEYS exclusion with the new light_schema_change requirement, applied at visitPhysicalOlapScan, visitPhysicalCatalogRelation and visitPhysicalFilter.

Add regression test topn_lazy_light_schema_change verifying:

  • light_schema_change=false: no lazy materialization in the plan, correct results.
  • light_schema_change=true: lazy materialization still applies, correct results.

Behavior after the fix

Table Plan Result
light_schema_change = false plain PhysicalOlapScan (no lazy) → safe two-phase read correct values
light_schema_change = true PhysicalLazyMaterialize / PhysicalLazyMaterializeOlapScan (unchanged) correct values

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@liutang123

Copy link
Copy Markdown
Contributor Author

run buildall

@liutang123

Copy link
Copy Markdown
Contributor Author

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed PR 65415 for TopN lazy materialization gating on non-light-schema-change OLAP tables.

Critical checkpoint conclusions:

  • Goal and coverage: The PR disables OLAP TopN lazy materialization before source selection when the table is AGG_KEYS or has light_schema_change=false, and adds a regression covering explicit false and true table properties.
  • Scope: The change is small and focused on MaterializeProbeVisitor support checks plus one targeted regression suite.
  • Concurrency/lifecycle: No new concurrency, locks, async lifecycle, static initialization, persistence, or transaction paths are introduced.
  • Config/session compatibility: No new config is added. Existing topn_lazy_materialization_threshold and topn_lazy_materialization_using_index paths remain unchanged; the new table-property gate is applied in the normal scan, catalog-relation, and using-index filter probe paths.
  • Parallel paths: The relevant OLAP probe entry points are covered; non-OLAP lazy materialization paths are unchanged.
  • Test coverage: The regression checks both plan shape and query result for light_schema_change=false fallback and light_schema_change=true lazy behavior. I did not run the regression locally in this shallow Actions checkout because thirdparty/installed and thirdparty/installed/bin/protoc are missing; GitHub CI currently has style/license checks passing, with compile/FE UT/performance still pending.
  • User focus: No additional user-provided focus points were supplied.

Subagent conclusions: optimizer-rewrite reported NO_NEW_VALUABLE_FINDINGS; tests-session-config reported NO_NEW_VALUABLE_FINDINGS. No subagent candidate became an inline comment, and none were dismissed or merged as duplicates. Final convergence round 1 ended with both live subagents reporting NO_NEW_VALUABLE_FINDINGS for the same empty inline-comment set and this comment-only review body.

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 6.85% (5/73) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-H: Total hot run time: 29611 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 39f90f235a35dd24211e2c0ed851c7acdef7d268, data reload: false

------ Round 1 ----------------------------------
============================================
q1	17723	4077	4026	4026
q2	2040	328	198	198
q3	10293	1398	840	840
q4	4676	471	341	341
q5	7481	859	576	576
q6	187	181	137	137
q7	777	856	618	618
q8	9326	1625	1565	1565
q9	5584	4388	4397	4388
q10	6775	1803	1544	1544
q11	510	344	310	310
q12	702	554	436	436
q13	18142	3457	2818	2818
q14	270	266	231	231
q15	q16	795	774	703	703
q17	1011	997	1014	997
q18	6807	5794	5499	5499
q19	1419	1290	1086	1086
q20	768	704	516	516
q21	5902	2701	2478	2478
q22	434	369	304	304
Total cold run time: 101622 ms
Total hot run time: 29611 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4341	4298	4269	4269
q2	293	323	218	218
q3	4539	5011	4399	4399
q4	2070	2165	1359	1359
q5	4464	4308	4317	4308
q6	230	180	132	132
q7	1725	1988	1871	1871
q8	2610	2246	2202	2202
q9	8157	8213	7847	7847
q10	4709	4715	4287	4287
q11	561	432	420	420
q12	745	783	577	577
q13	3259	3616	2948	2948
q14	315	298	272	272
q15	q16	741	742	645	645
q17	1371	1310	1334	1310
q18	8030	7576	7358	7358
q19	1144	1113	1070	1070
q20	2196	2199	1953	1953
q21	5217	4557	4441	4441
q22	535	469	404	404
Total cold run time: 57252 ms
Total hot run time: 52290 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 181189 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 39f90f235a35dd24211e2c0ed851c7acdef7d268, data reload: false

query5	4308	641	495	495
query6	459	231	226	226
query7	4853	606	363	363
query8	333	186	173	173
query9	8786	4093	4074	4074
query10	451	366	306	306
query11	5943	2341	2202	2202
query12	168	102	100	100
query13	1250	621	429	429
query14	6235	5373	5075	5075
query14_1	4363	4443	4341	4341
query15	212	219	197	197
query16	1037	501	423	423
query17	927	705	573	573
query18	2433	464	358	358
query19	205	191	145	145
query20	113	107	100	100
query21	245	163	133	133
query22	13675	13664	13532	13532
query23	17403	16613	16239	16239
query23_1	16335	16230	16240	16230
query24	7593	1796	1279	1279
query24_1	1305	1305	1287	1287
query25	540	442	361	361
query26	1341	352	209	209
query27	2614	576	373	373
query28	4468	2019	1986	1986
query29	1087	612	483	483
query30	340	260	216	216
query31	1112	1090	987	987
query32	115	64	65	64
query33	534	329	257	257
query34	1189	1136	662	662
query35	777	794	677	677
query36	1383	1356	1238	1238
query37	158	115	97	97
query38	1890	1700	1657	1657
query39	931	930	906	906
query39_1	893	881	891	881
query40	245	162	148	148
query41	72	70	70	70
query42	96	95	95	95
query43	333	348	288	288
query44	1438	786	786	786
query45	212	189	181	181
query46	1080	1208	745	745
query47	2319	2281	2154	2154
query48	434	441	315	315
query49	599	436	340	340
query50	1055	432	336	336
query51	10686	11083	10687	10687
query52	90	90	83	83
query53	274	303	204	204
query54	310	245	228	228
query55	76	74	70	70
query56	323	308	323	308
query57	1397	1376	1310	1310
query58	297	284	267	267
query59	1592	1705	1486	1486
query60	313	276	258	258
query61	182	172	175	172
query62	696	648	593	593
query63	252	211	213	211
query64	2976	1056	834	834
query65	4944	4813	4794	4794
query66	1855	497	378	378
query67	29540	29599	29355	29355
query68	3165	1475	945	945
query69	398	302	277	277
query70	1112	989	991	989
query71	354	319	292	292
query72	3020	2767	2394	2394
query73	806	764	437	437
query74	5136	4987	4760	4760
query75	2610	2606	2208	2208
query76	2327	1204	779	779
query77	356	387	293	293
query78	12589	12530	11807	11807
query79	1449	1176	767	767
query80	654	551	459	459
query81	465	325	281	281
query82	586	169	126	126
query83	398	324	296	296
query84	331	159	126	126
query85	914	594	520	520
query86	359	298	288	288
query87	1833	1827	1749	1749
query88	3745	2841	2785	2785
query89	452	408	351	351
query90	1940	213	203	203
query91	208	199	167	167
query92	61	60	58	58
query93	1530	1529	1011	1011
query94	552	348	337	337
query95	794	557	460	460
query96	1073	780	360	360
query97	2662	2681	2540	2540
query98	229	209	203	203
query99	1155	1175	1016	1016
Total cold run time: 265263 ms
Total hot run time: 181189 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
ClickBench: Total hot run time: 25.09 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 39f90f235a35dd24211e2c0ed851c7acdef7d268, data reload: false

query1	0.01	0.01	0.00
query2	0.10	0.04	0.06
query3	0.26	0.14	0.14
query4	1.63	0.14	0.14
query5	0.24	0.22	0.22
query6	1.25	1.04	1.06
query7	0.04	0.01	0.00
query8	0.06	0.03	0.04
query9	0.38	0.31	0.33
query10	0.54	0.56	0.58
query11	0.20	0.15	0.14
query12	0.18	0.14	0.14
query13	0.46	0.48	0.48
query14	1.02	1.04	1.00
query15	0.62	0.58	0.60
query16	0.32	0.32	0.32
query17	1.08	1.12	1.09
query18	0.23	0.21	0.21
query19	2.06	1.99	1.98
query20	0.02	0.01	0.01
query21	15.47	0.22	0.14
query22	4.92	0.05	0.06
query23	16.14	0.31	0.11
query24	2.97	0.44	0.36
query25	0.12	0.05	0.04
query26	0.73	0.21	0.16
query27	0.05	0.04	0.04
query28	3.56	0.94	0.53
query29	12.48	4.10	3.25
query30	0.27	0.16	0.15
query31	2.77	0.63	0.32
query32	3.23	0.59	0.48
query33	3.22	3.27	3.18
query34	15.44	4.23	3.53
query35	3.57	3.54	3.53
query36	0.56	0.43	0.42
query37	0.09	0.07	0.06
query38	0.05	0.04	0.04
query39	0.03	0.03	0.03
query40	0.17	0.17	0.15
query41	0.08	0.03	0.03
query42	0.04	0.02	0.02
query43	0.05	0.04	0.04
Total cold run time: 96.71 s
Total hot run time: 25.09 s

… non-light-schema-change tables

TopN lazy materialization appends a synthetic global row-id column
(__DORIS_GLOBAL_ROWID_COL__<table>) to the OLAP scan. The BE only rebuilds the
tablet schema from FE's columns_desc when columns_desc[0].col_unique_id >= 0,
which only holds for light_schema_change tables. On a non-light-schema-change
table every column's uniqueId is -1, so the synthetic row-id column never enters
the BE tablet schema and the scan fails with:

  field name is invalid. field=__DORIS_GLOBAL_ROWID_COL__<table>

(forcing the column into the scan schema instead makes the second-phase fetch
silently return NULL for the lazily-materialized columns, which is worse).

Fix: disable topn lazy materialization for non-light-schema-change OLAP tables in
MaterializeProbeVisitor and fall back to normal topn (the working two-phase read
path). A new helper supportOlapTopnLazyMaterialize() consolidates the existing
AGG_KEYS exclusion with the new light_schema_change requirement, applied at
visitPhysicalOlapScan, visitPhysicalCatalogRelation and visitPhysicalFilter.

Add regression test topn_lazy_light_schema_change verifying:
- light_schema_change=false: no lazy materialization in the plan, correct results.
- light_schema_change=true: lazy materialization still applies, correct results.

Also stub OlapTable.getEnableLightSchemaChange() in MaterializeProbeVisitorTest's
mock so the existing access-path unit tests exercise a lazy-materializable table.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@liutang123 liutang123 force-pushed the fix-topn-lazy-non-lsc-table branch from 39f90f2 to f4d8b5e Compare July 13, 2026 08:43
@liutang123

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-H: Total hot run time: 29708 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit f4d8b5e0a872e7ee1911f243eff827c58dee916f, data reload: false

------ Round 1 ----------------------------------
============================================
q1	17672	4055	4036	4036
q2	2050	318	197	197
q3	10296	1401	855	855
q4	4679	470	339	339
q5	7552	854	575	575
q6	179	169	135	135
q7	748	834	628	628
q8	9374	1546	1484	1484
q9	5653	4452	4366	4366
q10	6767	1826	1545	1545
q11	500	341	343	341
q12	707	548	407	407
q13	18100	3670	2784	2784
q14	264	254	246	246
q15	q16	778	793	712	712
q17	1018	918	1013	918
q18	6868	5753	5577	5577
q19	1160	1144	1051	1051
q20	745	639	578	578
q21	6012	2813	2610	2610
q22	462	367	324	324
Total cold run time: 101584 ms
Total hot run time: 29708 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	5149	4705	4806	4705
q2	298	332	208	208
q3	4903	5259	4740	4740
q4	2062	2121	1358	1358
q5	4782	4866	4661	4661
q6	238	175	131	131
q7	1913	1791	1541	1541
q8	2371	2155	2058	2058
q9	7756	7339	7211	7211
q10	4687	4613	4123	4123
q11	527	379	356	356
q12	732	742	529	529
q13	2957	3380	2781	2781
q14	282	282	251	251
q15	q16	680	694	604	604
q17	1253	1235	1224	1224
q18	7257	6978	6722	6722
q19	1085	1032	1038	1032
q20	2216	2215	1942	1942
q21	5210	4560	4332	4332
q22	501	443	391	391
Total cold run time: 56859 ms
Total hot run time: 50900 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 180169 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit f4d8b5e0a872e7ee1911f243eff827c58dee916f, data reload: false

query5	4332	627	491	491
query6	471	217	203	203
query7	4840	572	345	345
query8	345	181	170	170
query9	8750	3968	3991	3968
query10	448	355	290	290
query11	5901	2340	2188	2188
query12	157	102	97	97
query13	1301	619	453	453
query14	6272	5275	4917	4917
query14_1	4297	4277	4297	4277
query15	225	209	182	182
query16	1004	454	457	454
query17	952	704	602	602
query18	2465	483	353	353
query19	220	202	154	154
query20	114	107	106	106
query21	233	156	134	134
query22	13547	13568	13402	13402
query23	17296	16604	16238	16238
query23_1	16340	16443	16290	16290
query24	7669	1774	1296	1296
query24_1	1312	1303	1297	1297
query25	586	474	425	425
query26	1345	353	213	213
query27	2593	573	394	394
query28	4476	2015	2007	2007
query29	1084	617	520	520
query30	330	260	226	226
query31	1120	1099	978	978
query32	107	62	66	62
query33	553	338	254	254
query34	1181	1177	655	655
query35	775	802	673	673
query36	1428	1397	1247	1247
query37	155	108	92	92
query38	1917	1694	1642	1642
query39	920	902	881	881
query39_1	900	873	872	872
query40	247	162	134	134
query41	64	65	64	64
query42	93	91	88	88
query43	316	318	275	275
query44	1402	782	750	750
query45	207	181	182	181
query46	1044	1184	725	725
query47	2394	2372	2261	2261
query48	395	426	299	299
query49	583	432	320	320
query50	1035	419	330	330
query51	10821	10835	10788	10788
query52	91	87	74	74
query53	258	272	202	202
query54	284	245	234	234
query55	74	71	66	66
query56	308	284	288	284
query57	1430	1425	1332	1332
query58	284	264	247	247
query59	1562	1663	1467	1467
query60	301	259	253	253
query61	150	150	141	141
query62	696	641	588	588
query63	246	202	201	201
query64	2826	1062	892	892
query65	4805	4818	4779	4779
query66	1849	514	391	391
query67	29823	29472	29281	29281
query68	3236	1583	989	989
query69	409	304	268	268
query70	1095	946	909	909
query71	350	320	299	299
query72	3038	2706	2443	2443
query73	807	743	411	411
query74	5109	4970	4764	4764
query75	2596	2590	2220	2220
query76	2332	1162	792	792
query77	353	376	281	281
query78	12372	12317	11607	11607
query79	1391	1210	741	741
query80	1303	546	451	451
query81	520	316	272	272
query82	627	153	119	119
query83	366	314	291	291
query84	325	159	132	132
query85	954	596	510	510
query86	415	305	296	296
query87	1822	1821	1727	1727
query88	3675	2756	2738	2738
query89	450	419	353	353
query90	1917	195	192	192
query91	199	193	160	160
query92	65	65	56	56
query93	1598	1560	968	968
query94	713	361	322	322
query95	789	502	487	487
query96	1023	793	346	346
query97	2708	2681	2583	2583
query98	211	208	201	201
query99	1150	1186	1039	1039
Total cold run time: 265897 ms
Total hot run time: 180169 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
ClickBench: Total hot run time: 25 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit f4d8b5e0a872e7ee1911f243eff827c58dee916f, data reload: false

query1	0.01	0.00	0.00
query2	0.10	0.04	0.04
query3	0.25	0.14	0.12
query4	1.60	0.14	0.14
query5	0.27	0.23	0.21
query6	1.29	1.13	1.04
query7	0.04	0.01	0.00
query8	0.06	0.04	0.04
query9	0.39	0.33	0.31
query10	0.60	0.54	0.55
query11	0.20	0.14	0.13
query12	0.19	0.14	0.15
query13	0.47	0.48	0.48
query14	1.02	1.00	1.02
query15	0.61	0.60	0.58
query16	0.33	0.34	0.31
query17	1.11	1.12	1.11
query18	0.23	0.20	0.20
query19	2.15	1.99	1.91
query20	0.02	0.01	0.01
query21	15.44	0.22	0.15
query22	4.90	0.05	0.06
query23	16.09	0.30	0.11
query24	3.03	0.45	0.31
query25	0.11	0.05	0.05
query26	0.75	0.20	0.15
query27	0.04	0.04	0.04
query28	3.52	0.93	0.51
query29	12.51	4.08	3.25
query30	0.27	0.16	0.15
query31	2.77	0.59	0.32
query32	3.23	0.58	0.49
query33	3.17	3.32	3.29
query34	15.38	4.23	3.50
query35	3.47	3.52	3.51
query36	0.55	0.44	0.43
query37	0.09	0.07	0.07
query38	0.06	0.04	0.04
query39	0.03	0.03	0.03
query40	0.18	0.16	0.15
query41	0.09	0.03	0.02
query42	0.04	0.03	0.03
query43	0.04	0.04	0.04
Total cold run time: 96.7 s
Total hot run time: 25 s

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 33.33% (3/9) 🎉
Increment coverage report
Complete coverage report

@liutang123

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-H: Total hot run time: 29711 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit c0778c4208b76a4d24cfe425568b93131ced1c6f, data reload: false

------ Round 1 ----------------------------------
============================================
q1	17619	4070	4061	4061
q2	2068	335	223	223
q3	10224	1418	815	815
q4	4688	478	345	345
q5	7499	887	597	597
q6	183	174	142	142
q7	794	837	640	640
q8	9365	1540	1542	1540
q9	5565	4381	4325	4325
q10	6788	1764	1499	1499
q11	512	351	314	314
q12	714	561	434	434
q13	18089	3379	2753	2753
q14	288	266	242	242
q15	q16	797	802	716	716
q17	1077	1052	1028	1028
q18	7313	5714	5572	5572
q19	1305	1228	1072	1072
q20	742	696	565	565
q21	5969	2618	2521	2521
q22	436	364	307	307
Total cold run time: 102035 ms
Total hot run time: 29711 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4374	4288	4320	4288
q2	296	321	211	211
q3	4614	5002	4436	4436
q4	2105	2189	1399	1399
q5	4408	4293	4335	4293
q6	227	176	130	130
q7	1729	2060	1854	1854
q8	2577	2230	2188	2188
q9	8046	8152	8066	8066
q10	4694	4705	4254	4254
q11	580	431	387	387
q12	747	781	557	557
q13	3347	3630	2990	2990
q14	302	295	261	261
q15	q16	717	742	635	635
q17	1377	1332	1355	1332
q18	8014	7342	7261	7261
q19	1171	1138	1087	1087
q20	2210	2210	1971	1971
q21	5294	4595	4418	4418
q22	516	466	401	401
Total cold run time: 57345 ms
Total hot run time: 52419 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 179028 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit c0778c4208b76a4d24cfe425568b93131ced1c6f, data reload: false

query5	4312	622	498	498
query6	476	219	226	219
query7	4869	602	335	335
query8	339	195	172	172
query9	8767	4050	4046	4046
query10	473	370	316	316
query11	5943	2406	2137	2137
query12	166	105	104	104
query13	1269	588	447	447
query14	6252	5218	4913	4913
query14_1	4271	4255	4263	4255
query15	213	210	181	181
query16	978	455	449	449
query17	966	749	597	597
query18	2465	456	370	370
query19	209	196	153	153
query20	112	107	109	107
query21	237	160	136	136
query22	13570	13561	13341	13341
query23	17456	16551	16204	16204
query23_1	16274	16355	16389	16355
query24	7568	1801	1305	1305
query24_1	1311	1282	1261	1261
query25	572	499	354	354
query26	1339	342	191	191
query27	2658	589	373	373
query28	4459	2003	1977	1977
query29	1051	614	463	463
query30	337	253	226	226
query31	1113	1094	985	985
query32	124	63	60	60
query33	526	316	249	249
query34	1193	1144	647	647
query35	766	781	661	661
query36	1197	1205	1081	1081
query37	152	102	89	89
query38	1883	1698	1651	1651
query39	912	887	860	860
query39_1	849	839	860	839
query40	254	163	143	143
query41	66	64	65	64
query42	92	89	96	89
query43	322	321	281	281
query44	1421	778	767	767
query45	197	204	175	175
query46	1045	1215	742	742
query47	2173	2154	2043	2043
query48	386	415	294	294
query49	584	439	315	315
query50	1121	416	320	320
query51	10715	10874	10740	10740
query52	89	93	77	77
query53	254	263	198	198
query54	295	232	232	232
query55	75	74	70	70
query56	304	305	290	290
query57	1338	1285	1226	1226
query58	288	253	247	247
query59	1601	1601	1391	1391
query60	306	273	254	254
query61	151	150	153	150
query62	564	501	436	436
query63	244	200	197	197
query64	2891	1047	986	986
query65	4704	4638	4585	4585
query66	1882	527	412	412
query67	28785	29247	29182	29182
query68	3245	1603	1035	1035
query69	409	318	282	282
query70	1097	1002	968	968
query71	350	348	306	306
query72	3121	2671	2365	2365
query73	859	862	430	430
query74	5057	4911	4718	4718
query75	2552	2506	2132	2132
query76	2343	1179	808	808
query77	356	380	285	285
query78	11859	11962	11456	11456
query79	1404	1116	754	754
query80	1288	543	462	462
query81	527	317	284	284
query82	962	159	122	122
query83	400	326	303	303
query84	351	166	133	133
query85	998	601	514	514
query86	448	313	279	279
query87	1846	1825	1768	1768
query88	3728	2860	2835	2835
query89	435	369	328	328
query90	1952	198	195	195
query91	199	191	162	162
query92	66	65	59	59
query93	1662	1509	973	973
query94	761	364	315	315
query95	784	584	455	455
query96	1085	777	362	362
query97	2629	2654	2501	2501
query98	209	210	203	203
query99	1099	1117	979	979
Total cold run time: 263905 ms
Total hot run time: 179028 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
ClickBench: Total hot run time: 25.11 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit c0778c4208b76a4d24cfe425568b93131ced1c6f, data reload: false

query1	0.00	0.00	0.00
query2	0.10	0.05	0.04
query3	0.26	0.14	0.14
query4	1.61	0.14	0.14
query5	0.25	0.22	0.23
query6	1.26	1.07	1.09
query7	0.04	0.00	0.00
query8	0.06	0.04	0.04
query9	0.39	0.31	0.31
query10	0.54	0.56	0.54
query11	0.20	0.15	0.14
query12	0.18	0.14	0.14
query13	0.46	0.46	0.48
query14	1.02	0.99	1.00
query15	0.61	0.61	0.60
query16	0.33	0.33	0.32
query17	1.11	1.09	1.10
query18	0.23	0.21	0.20
query19	1.99	1.96	1.95
query20	0.02	0.02	0.01
query21	15.44	0.22	0.13
query22	4.90	0.06	0.05
query23	16.10	0.32	0.13
query24	2.97	0.44	0.32
query25	0.12	0.05	0.05
query26	0.76	0.20	0.16
query27	0.03	0.04	0.03
query28	3.52	0.90	0.55
query29	12.48	4.11	3.20
query30	0.27	0.15	0.17
query31	2.77	0.57	0.32
query32	3.23	0.59	0.48
query33	3.13	3.32	3.26
query34	15.58	4.27	3.54
query35	3.54	3.52	3.55
query36	0.55	0.44	0.43
query37	0.10	0.07	0.07
query38	0.05	0.04	0.04
query39	0.04	0.03	0.03
query40	0.19	0.17	0.16
query41	0.08	0.04	0.03
query42	0.05	0.03	0.03
query43	0.05	0.04	0.03
Total cold run time: 96.61 s
Total hot run time: 25.11 s

@liutang123

Copy link
Copy Markdown
Contributor Author

@morrySnow Hi, do you have time to see this BUG?
This bug may cause widespread query failures in clusters upgraded from lower versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants